<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <title>{{.global.Title}}</title>
        <link rel="canonical" href="{{.global.SiteUrl}}" />
        {{template "tpl-linker.html" .}}
    </head>
    <body>
        {{template "tpl-naver.html" .}}
        <div id="main">
            <section id="page-index">
                {{ range $k, $v := .Posts }}
                <article class="post">
                    <div class="meta">
                        <div>
                            <span class="author">zxysilent</span>
                            <span>发布于</span>
                            <span class="date">{{ date $v.CreateTime "2006-01-02" }}</span>
                        </div>
                        <div class="comment">
                            <a href="/post/{{$v.Path}}.html#comments">comments</a>
                        </div>
                    </div>
                    <h1 class="title">
                        <a href="/post/{{$v.Path}}.html">{{$v.Title}}</a>
                    </h1>
                    <div class="entry-content">
                        {{ str2html $v.Summary }}
                        <p class="more">
                            <a href="/post/{{$v.Path}}.html">阅读全文 »</a>
                        </p>
                    </div>
                </article>
                {{ end }}
                <nav class="pagination">
                    {{ if ne .Naver.Prev ""}}
                    <a href="{{.Naver.Prev}}" class="prev">&laquo; 上一页</a>
                    {{end}}
                    <div class="center"><a href="/archives">博客归档</a></div>
                    {{ if ne .Naver.Next ""}}
                    <a href="{{.Naver.Next}}" class="next">下一页 &raquo;</a>
                    {{end}}
                </nav>
            </section>
        </div>
        {{template "tpl-footer.html" .}}
    </body>
</html>
